package com.ruoyi.web.controller.common;


import com.ruoyi.common.core.domain.AjaxResult;
import com.zh.controller.TestController1;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test2")
public class TestController2 {


    @Resource
    TestController1 testController1;


    @RequestMapping("/test1")
    public AjaxResult test1(){
        return AjaxResult.success("ok");
    }


    @RequestMapping("/test2")
    public AjaxResult test2(){
        testController1.test2();
        return AjaxResult.success("ok");
    }

}
